package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class ExtraContextBean  implements Serializable ,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3760133218843107478L;
	private Listinfobean group ;
	private TopicBean topic ;
	private UserActorBean friend_actor ;
	private TopicAndPostBean post ;
	public TopicAndPostBean getPost() {
		return post;
	}
	public Listinfobean getGroup() {
		return group;
	}
	public void setGroup(Listinfobean group) {
		this.group = group;
	}
	public TopicBean getTopic() {
		return topic;
	}
	public void setTopic(TopicBean topic) {
		this.topic = topic;
	}
	public UserActorBean getFriend_actor() {
		return friend_actor;
	}
	public void setFriend_actor(UserActorBean friend_actor) {
		this.friend_actor = friend_actor;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, ExtraContextBean.class);
		}
		return null;
	}

}
